28 #ifndef _spoton_sctp_server_h_ 29 #define _spoton_sctp_server_h_ 32 #if defined(Q_OS_LINUX) || defined(Q_OS_MAC) || defined(Q_OS_UNIX) 33 #include <QSocketNotifier> 45 QHostAddress serverAddress(
void)
const;
46 QString errorString(
void)
const;
47 bool isListening(
void)
const;
48 bool listen(
const QHostAddress &address,
50 const QString &socketOptions);
51 int maxPendingConnections(
void)
const;
52 int socketDescriptor(
void)
const;
53 quint16 serverPort(
void)
const;
55 void setMaxPendingConnections(
const int numConnections);
58 QHostAddress m_serverAddress;
59 QString m_errorString;
60 #if defined(Q_OS_LINUX) || defined(Q_OS_MAC) || defined(Q_OS_UNIX) 61 QSocketNotifier *m_socketNotifier;
68 SOCKET m_socketDescriptor;
70 int m_socketDescriptor;
76 #if defined(Q_OS_LINUX) || defined(Q_OS_MAC) || defined(Q_OS_UNIX) 77 void slotActivated(
int socketDescriptor);
79 void slotTimeout(
void);
83 #if QT_VERSION < 0x050000 84 void newConnection(
const int socketDescriptor,
85 const QHostAddress &address,
88 void newConnection(
const qintptr socketDescriptor,
89 const QHostAddress &address,
Definition: spot-on-sctp-server.h:38